<style>
.detail-searchbox {
	padding: 5px 3.124%;
	background: #f3f3f3;
}
.detail-searchbox .members_search {
	margin-bottom: 8px;
	background: #fff;
}
</style>

<div class="membersbox pad50">

	<div class="detail-searchbox">
		<section class="members_search">
			<form method="get" action="">
				<input type="text" name="goods_name" id="goods_name" value="<?php echo get('goods_name');?>" placeholder="商品搜索：请输入商品关键字">
				<button type="submit"></button>
			</form>
		</section>
	</div>

	<section class="mlist_nav g-box">
		<?php $orderby = get('orderby');?>
		<span class="<?php echo (($orderby=='') ? 'cur' : ''); ?>"><a href="/mobile/goods/lists/?orderby=">默认</a></span>
		<span class="<?php echo (($orderby=='pricedown') ? 'cur' : ''); ?>"><a href="/mobile/goods/lists/?orderby=pricedown">价格</a></span>
		<span class="<?php echo (($orderby=='sales') ? 'cur' : ''); ?>"><a href="/mobile/goods/lists/?orderby=sales">销量</a></span>
		<span class="<?php echo (($orderby=='pv') ? 'cur' : ''); ?>"><a href="/mobile/goods/lists/?orderby=pv">人气</a></span>

	</section>

<?php foreach($datalist as $kk=>$vv){?>

<section class="mlist_nav" style="margin-top:10px;background-color:#01aaef;">
	<span>
	<a class="fl" style="color:#fff;margin-left:10px;font-size:16px;border-bottom: 0;font-weight:bold;" href="/mobile/goods/lists/?orderby=<?php echo get('orderby');?>&gtype_id=<?php echo $kk;?>">| <?php echo $gtype[$kk]['gtype_name']; ?></a>
	<a class="fr" style="color:#fff;margin-right:15px;border-bottom: 0;" href="/mobile/goods/lists/?orderby=<?php echo get('orderby');?>&gtype_id=<?php echo $kk;?>">更多></a>
	</span>
</section>
<!--  
<section id="J-listgoods" class="mlist_goods newlist avr">
		<ul class="clearfix">
		
			<?php foreach($vv as $k=>$v){?>
			<li class="g-box por">
				<section>
					<a href="/mobile/goods/index/?goods_id=<?php echo $v['goods_id'];?>">
					<img src="<?php echo C("UPYUN_DOMAIN").$v['goods_pic'];?>!/fw/640"  onerror="javascript:this.src='__STATIC__mobile/images/goods.jpg';">
					</a>
					<span>热卖</span>
				</section>
				<section class="g-flex">
					<div class="goods-detail">
						<a href="/mobile/goods/index/?goods_id=<?php echo $v['goods_id'];?>"><?php echo $v['goods_name'];?></a>
						<p class="listsgoods-group"></p>
					</div>
					<p>
						<b> <em>¥</em> <?php echo $v['shop_price'];?>
						</b> <span class="original_price"><s>¥<?php echo $v['market_price'];?></s></span>
					</p>
				</section> 
			</li>
		<?php } ?>
			
		</ul>
	</section>
	-->

	<section class="members_goodspic">
		<ul>
		
		<?php foreach($vv as $k=>$v){?>
		
			<?php if( ($v['goods_id'] == 16 && ($memberinfo['grade_id'] >= 3)) || ($v['goods_id'] != 16)  ){ ?>
		
			<li class="biggoods">
			<a class="goodsimg" href="/mobile/goods/index/?goods_id=<?php echo $v['goods_id'];?>">
			<img data-original="<?php echo C("UPYUN_DOMAIN").$v['goods_pic'];?>!/fw/640" class="lazyload" width="100%"  onerror="javascript:this.src='__STATIC__mobile/images/goods.jpg';">
			</a>
				<section class="members_goodsimg_name rename clearfix" >
					<a href="/mobile/goods/index/?goods_id=<?php echo $v['goods_id'];?>"><?php echo $v['goods_name'];?></a>
					 <span> 
                                             
                                             <?php if($v['gtype_id']==9) { ?>
                                
                                            <span><?php echo $v['shop_price'];?>积分</span>
                                               <?php }else{ ?>
                                               <span class="yen">&yen;</span><?php echo $v['shop_price'];?>
                                               <?php } ?>

					 
					 <span class="original_price">原价：<s>&yen;<?php echo $v['market_price'];?></s></span>
					</span>
				</section>
			</li>
					
			<?php } ?>
		<?php } ?>		
			
		</ul>
	</section>
	

	
	
<?php } ?>	


	


	<include file="Common:bottom" />
</div>

<include file="Common:nav" />
<include file="Common:xuanfubtn" />
<include file="Common:collectbtn" />
<include file="Common:js" />